package com.zyf.workflow.work;


import com.zyf.workflow.work.bean.WorkResult;
import com.zyf.workflow.work.bean.WorkTypeEnum;

public interface Work {

    WorkResult dowWork();

    String getWorkName();

    WorkTypeEnum getWorkType();

    default String getNextWork() {
        return null;
    }

    default void setNextWork(String nextWork) {
    }

    default void workFail(){}

}
